//
//  MainTabBarContentViewController.m
//  ASHT_IOS
//
//  Created by 宋安安 on 14-4-5.
//  Copyright (c) 2014年 宋安安. All rights reserved.
//

#import "MainTabBarContentViewController.h"

@interface MainTabBarContentViewController ()

@end

@implementation MainTabBarContentViewController
@synthesize tabBar;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        tabBar=[[UITabBarController alloc]init];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    tabBar.view.frame=self.view_Content.frame;
    [self.view_Content addSubview:tabBar.view];
    chVC=[[CenterHomeViewController alloc]initWithNibName:XIB_Version(@"CenterHomeViewController") bundle:nil];
    rhVC=[[RigthHomeViewController alloc]initWithNibName:XIB_Version(@"RigthHomeViewController") bundle:nil];
    wsVC=[[WorkServicesViewController alloc] initWithNibName:XIB_Version(@"WorkServicesViewController") bundle:nil];
    //激光产业园
    ipVC=[[IndustrialParkViewController alloc] initWithNibName:XIB_Version(@"IndustrialParkViewController") bundle:nil];
    //招商引资
    amVC=[[AttractMoneyViewController alloc] initWithNibName:XIB_Version(@"AttractMoneyViewController") bundle:nil];
    //政务公开
    apVC=[[AffairsPublicViewController alloc] initWithNibName:XIB_Version(@"AffairsPublicViewController") bundle:nil];
    mapVC=[[MapServiceViewController alloc] initWithNibName:XIB_Version(@"MapServiceViewController") bundle:nil];
    aboutVC=[[AboutViewController alloc]initWithNibName:XIB_Version(@"AboutViewController") bundle:nil];
    tabBar.viewControllers=@[chVC,ipVC,amVC,apVC,wsVC,mapVC,aboutVC];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
